package com.Helper;

public class SeatInfo 
{
	public String seatID = null;
	public String flightID = null;
	public String type = null;
	public String status = null;
	public String meal = null;
	
	public String getSeatID()
	{
		return seatID;
	}
		
	public String getType()
	{
		
		String seatNum = seatID.substring(1, 3);
		int num = Integer.parseInt(seatNum);
		
		if (num >= 10 && num <= 11)
		{
			type = "Business";
		}
		else if (num >= 12 && num <= 18)
		{
			type = "Economy Plus";
		}
		else if (num >= 19 && num <= 30)
		{
			type = "Economy";
		}
		else
		{
			System.out.println("invalid SeatID");
		}
		
		return type;
	}
	
	public String getFlightID()
	{
		return flightID;
	}
	
	public String getStatus()
	{
		return status;
	}
	
	public String getMeal()
	{
		return meal;
	}
}
